home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr48
/
formpas.zip
/
DEMO.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-04-14
|
2KB
|
60 lines
{ This file was used as an input file for FormPas. }
{ Altered code taken from turbo's grdemo.pas }
{ Original file is DEMO.OLD, new file is DEMO.PAS }
{ Try to find all the things it did with case, spacing and re-typing }
Program Formpas_Demo;
Procedure Textdump; { Dump the complete character sets to the screen }
Const
Cgasizes:Array [0..4] Of Word = (1, 3, 7, 3, 3);
Normsizes:Array [0..4] of Word = (1, 4, 7, 4, 4);
Var
Font : Word;
Viewinfo : Viewporttype;
Ch : char;
Begin { TEXTDUMP }
For Font := 0 to 4 do
Begin
Mainwindow (Fonts [Font]+' character set');
Getviewsettings (Viewinfo);
With Viewinfo do
Begin
Settextjustify (Lefttext, Toptext);
Moveto (2, 3);
If Font = Defaultfont
then
Begin
Settextstyle (Font, Horizdir, 1);
Ch := #0;
Repeat
Outtext (Ch);
If (Getx + Textwidth ('M')) > (X2-X1)
then Moveto (2, Gety + Textheight ('M')+3);
Ch := Succ (Ch);
Until (Ch >= #255);
end
else
Begin
If Maxy < 200
then Settextstyle (Font, Horizdir, Cgasizes [Font])
else Settextstyle (Font, Horizdir, Normsizes [Font]);
Ch := '!';
Repeat
Outtext (Ch);
If (Getx + Textwidth ('M')) > (X2-X1)
then Moveto (2, Gety + Textheight ('M')+3);
Ch := Succ (Ch);
Until (Ord (Ch) = Ord ('~')+1);
End;
end; { with }
Waittogo;
end; { for loop }
end; { TextDump }
Begin { FormPas_Demo }
end;